function getTotal(one: number, two: number): number {
  return one + two;
}
const total2 = getTotal(1, 2);

function say(): void {
  console.log("Hello World");
}

function errorFunction(): never {
  throw new Error();
  console.log("Hello World!!");
}

function forNever(): never {
  while (true) {
    console.log("hh");
  }
}

function add({ one, two }: { one: number; two: number }) {
  return one + two;
}

const total5 = add({ one: 11, two: 22 });

function getNumber({ one }: { one: number }) {
  return one;
}
const one1 = getNumber({ one: 111 });
